package com.ica.model.command;


import android.content.Context;

import com.ica.model.command.util.AudioManagerAdaptor;

/**
 * @author     Hector
 */
public abstract class AudioStateCommand extends AbstractCommand {
	
	/**
	 * @uml.property  name="audioManagerAdaptor"
	 * @uml.associationEnd  
	 */
	protected static AudioManagerAdaptor audioManagerAdaptor = null;

	public AudioStateCommand() {	
		super();
		if (audioManagerAdaptor==null) {
			audioManagerAdaptor = new AudioManagerAdaptor();
		}
	}

	@Override
	public boolean execute(Context context) {		
		executeAudioManagerMethod(context);
		log(getAudioManagerMessage());
		return true;
	}
	
	protected abstract void executeAudioManagerMethod(Context context);
	/**
	 */
	protected abstract String getAudioManagerMessage();
}
